package Model;

import java.util.Date;

/**
 * 用户查询对象
 */

public class UserQuery {

    private Integer user_id;  //序号
    private String user_number; //工号
    private String user_name; //用户名

    private String identity; //身份证号码
    private  String user_mobile;
    private Integer role_id; //角色id

    private int status; //状态

    private String jigou;
    private String department_settlement_code;

    //分页参数
    private int page;
    private int start;
    private int size;
    private int count; //最大记录数（该值如果已经存在， 则不再进行计数查询）
    private boolean pagination;

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUser_number() {
        return user_number;
    }

    public void setUser_number(String user_number) {
        this.user_number = user_number;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getUser_mobile() {
        return user_mobile;
    }

    public void setUser_mobile(String user_mobile) {
        this.user_mobile = user_mobile;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getJigou() {
        return jigou;
    }

    public void setJigou(String jigou) {
        this.jigou = jigou;
    }

    public String getDepartment_settlement_code() {
        return department_settlement_code;
    }

    public void setDepartment_settlement_code(String department_settlement_code) {
        this.department_settlement_code = department_settlement_code;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void addPagination(int start, int size){
        this.start = start;
        this.size = size;
        pagination = true;
    }

    public void removePagination(){
        pagination = false;
        this.count = 0;
    }

    public boolean getPagination() {
        return pagination;
    }

    public void setPagination(boolean pagination) {
        this.pagination = pagination;
    }
}
